package com.cn.steam.foundation.common.model.exception;

import com.cn.steam.foundation.common.utils.Op;

import java.util.List;

/**
 * @author huangzz
 * 404资源找不到异常
 */
public class NotFoundException extends RuntimeException {

	private static String messageFormat = "Can not found {} by ID {} .";


	public NotFoundException(String message) {
		super(message);
	}

	public NotFoundException(String resourceName, List<String> ids) {
//fixme
	}

	public NotFoundException(String resourceName, String id) {
		super(Op.str(messageFormat, resourceName, id));
	}


	public NotFoundException(String message, Throwable cause) {
		super(message, cause);
	}

}
